<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2022/6/28
 * Time: 9:52
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\common\validate;

use think\Validate;

class Machine extends Validate
{
    protected $rule = [
        "machine_id"=>"require",
        "machine_name"=>"require",
        "machine_cate"=>"require",
        "snCode"=>"require",
        "province"=>"require",
        "city"=>"require",
        "area"=>"require",
        "address"=>"require",
        "province_name"=>"require",
        "city_name"=>"require",
        "area_name"=>"require",
        "lat"=>"require",
        "lng"=>"require"
    ];
    protected $message = [
        "machine_id.require"=>"请输入机器编号",
        "machine_name.require"=>"请输入机器名称",
        "machine_cate.require"=>"请选择代理商",
        "snCode.require"=>"请输入设备Sn码",
        "province.require"=>"请选择机器省",
        "city.require"=>"请选择市",
        "area.require"=>"请选择区",
        "address.require"=>"请选择详情地址",
        "province_name.require"=>"请选择省",
        "city_name.require"=>"请选择市",
        "area_name.require"=>"请选择区",
        "lat.require"=>"请选择详情地址",
        "lng.require"=>"请选择详情地址",
    ];
}